package com.chenxbook.modules.examples.eventlistener;


import lombok.extern.slf4j.Slf4j;
import org.jbpm.api.listener.EventListener;
import org.jbpm.api.listener.EventListenerExecution;

@Slf4j
public class Escalate implements EventListener {

    private static final long serialVersionUID = -6529240297234254207L;

    @Override
    public void notify(EventListenerExecution execution) {
        log.info("====enter Escalate EventListener===");
        //设置流程变量escalation的值为true来标识事件被触发
        execution.setVariable("escalation", Boolean.TRUE);
    }
}
